﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Busness
{
    public class DataEntity
    {

    }

    /// <summary>
    /// 用户
    /// </summary>
    public class UserTable : DataEntity
    {
        public string UserName = string.Empty;
        public string UserID = string.Empty;
        public string PassWord = string.Empty;
    }

    /// <summary>
    /// 基本数据
    /// </summary>
    public class RTCDataTable : DataEntity
    {
        public int AreaNo = 0;
        public int DrvNo = 0;
        public int T1 = 0;
        public int T2 = 0;
        public int T3 = 0;
        public int T4 = 0;
        public int T5 = 0;
        public int T6 = 0;
        public int A_Value = 0;
        public int B_Value = 0;
        public int Run_Mod = 0;
        public int Run_Ta = 0;
        public ushort[] MotherboardID = new ushort[4];
        public int A_ValueAuto = 0;
        public int B_ValveAuto = 0;
        public int ErrNum = 0;
        public int RunTime = 0;
    }

    /// <summary>
    /// 时间段设置
    /// </summary>
    public class TimeSetTable : DataEntity
    {
        public int DrvNo = 0;
        public int CurveNo = 0;
        public int Start = 0;
        public int End = 0;
        public int CurveId = 0;
        public int Spare = 0;
        public int AreaID = 0;
    }

    /// <summary>
    /// 阀门微调设置
    /// </summary>
    public class ValveTable : DataEntity
    {
        public int DrvNo = 0;
        public int ValvaNo = 0;
        public int W1 = 0;
        public int W2 = 0;
        public int W3 = 0;
        public int W4 = 0;
        public int W5 = 0;
        public int W6 = 0;
        public int Max = 0;
        public int Min = 0;
        public int Step = 0;
        public int Delay = 0;
        public int AreaNo = 0;
    }

    /// <summary>
    /// 温度修正
    /// </summary>
    public class TempcorrectionTable : DataEntity
    {
        public int DrvNo = 0;
        public int T1 = 0;
        public int T2 = 0;
        public int T3 = 0;
        public int T4 = 0;
        public int T5 = 0;
        public int T6 = 0;
        public int TStop = 0;
        public int AreaNo = 0;
    }

    /// <summary>
    /// 站点
    /// </summary>
    public class SiteTable : DataEntity
    {
        public int AreaNo = 0;
        public int DrvNo = 0;
        public int Name = 0;
        public int UserId = 0;
        public byte[] MotherboardId = new byte[4];
        public int RunTime = 0;
        public int RunSum = 0;
    }

    /// <summary>
    /// 区域
    /// </summary>
    public class AreaTable : DataEntity
    {
        public int Name = 0;
        public int AreaNo = 0;
        public int UserId = 0;
    }
}
